package com.wpx.log.core.handler.field.equals;

import org.springframework.stereotype.Component;

@Component
public class BaseFieldEqualsPolicy implements IFieldEqualsPolicy {

	@Override
	public Class<?> getType() {
		return Object.class;
	}

	@Override
	public boolean equals(Object newValue, Object oldValue) {
		if(newValue == null) {
			return true;
		}
		return newValue.equals(oldValue);
	}

}
